function checkAll(id){
		var checked_status = ($("#"+id).attr("status")==1)?true:false; 
		$("input[name='rad_ID[]']").each(function(){
			this.checked = checked_status;
		})
		if(checked_status==true) {
			$("#"+id).attr("status","0");
			$("#"+id).text("unCheck");
		}
		else{
			$("#"+id).attr("status","1");
			 $("#"+id).text("Check");
		}
}
function deleteAll(url, msg)
{
	var data = new Array()
	i=0
	$("input[name='rad_ID[]']").each(function(){
			if(this.checked==true)
					data[i] = this.value;
			i++;
		
	})
	if(data.join(':')!='' && confirm(msg)){
		jQuery.ajax({
			url: url,
			data: {data:data.join(':')},
			dataType:'html',
			type: 'post',
			success: function(msg){
				window.location.reload();
			  }
		})
	}
}